package 笔试.同城58;

import java.util.Arrays;

/**
 * @author:谢君臣
 * @Date:2021/9/11-20:44
 * @version:1.0
 * @function:
 */
public class Main03 {
    public static void main(String[] args) {

    }
    public int getTeams (int[] heros) {
        // write code here
        int [] res = new int[5];
        for (int hero : heros) {
            res[hero]++;
        }
        int result =1;
        for (int re : res) {
            result*=re;
        }
        return result;
    }
}
